#include"start_interface.h"
#include"button.h"
#include<string>

void start_interface::create()
{
	initgraph(start_width, start_height);
	//默认背景设置成白色
	setbkcolor(WHITE);
	cleardevice();

	//产品名称
	std::wstring name(L"Information management system");
	int nameTextWidth = textwidth(name.c_str());
	int nameTextHeight = textheight(name.c_str());
	settextstyle(40, 0, _T("宋体"));
	setbkmode(0);
	settextcolor(BLACK);
	outtextxy(350, 42 + (85 - nameTextHeight) / 2, name.c_str());

	settextstyle(12, 0, _T("宋体"));
	settextcolor(BLACK);
	setbkmode(0);

	//设置简介按钮
	//3组按钮颜色
	int introNormalColor[3]{ 71, 236, 95 };
	int introHoverColor[3]{ 56, 189, 75 };
	int introClickColor[3]{ 120, 92, 32 };
	std::wstring introText(L"brief introduction");
	button intro(1040, 510, 160, 85, introNormalColor, introHoverColor, introClickColor, introText);
	intro.draw();
	
	//设置输入账号密码界面
	int accNormalColor[3]{ 0 };
	int accHoverColor[3]{ 139, 128, 128 };
	std::wstring accText(L"Please enter your account numbers.");
	
}